package com.qyhl.webtv.module_news.news.smallvideo.detail;


import com.qyhl.webtv.commonlib.entity.news.CatchSmallBean;

import java.util.List;

/**
 * Created by qyhl on 2017/12/7.
 */

public interface SmallVideoDetailContract {
    interface SmallVideoDetailView {
        void setDetail(CatchSmallBean bean);

        void setEmpty(String msg);

        void setError(String msg);

        void setNetError(String msg);

        void setComment(List<CatchSmallBean.Comments> beanList, boolean isMore, boolean isSelf);

        void setCommentError(String msg);

        void setCommentEmpty(String msg);

        void setCommentMessage(String msg);

        void setLog(String msg);

        void sendSuccess(String msg);

        void sendError(String msg);
    }

    interface SmallVideoDetailPresenter {
        void getDetail(String newsId);

        void getComment(String page, String number, String newsId);

        void sendComment(String newsId, String content, String userName, String nickName, String userAvatar);

        void count(String newsId);

        void setDetail(CatchSmallBean bean);

        void setError(int code, String msg);

        void setComment(List<CatchSmallBean.Comments> beanList, boolean isMore);

        void setCommentError(String msg);

        void setCommentEmpty(String msg);

        void setCommentMessage(String msg);

        void setLog(String msg);

        void sendSuccess(String msg);

        void sendError(String msg);
    }

    interface SmallVideoDetailModel {
        void getDetail(String newsId);

        void getComment(String page, String number, String newsId);

        void sendComment(String newsId, String content, String userName, String nickName, String userAvatar);

        void count(String newsId);
    }
}
